package entity.sparemanage;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 备件采购
 * </p>
 *
 * @author beisheng
 * @since 2023-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SpareParts implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "sp_id", type = IdType.AUTO)
    private Integer spId;


    /**
     * 采购单号
     */
    private String procureCode;

    /**
     * 采购主题
     */
    private String procureTheme;

    /**
     * 采购日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date procureTime;

    /**
     * 采购部门ID
     */
    private Integer procureDepartid;

    /**
     * 采购人员ID
     */
    private Integer procurePersonid;

    /**
     * 供应商ID
     */
    private Integer procureSupplierid;

    /**
     * 采购原因
     */
    private String procureReason;

    /**
     * 备注
     */
    private String procureRemark;

    /**
     * 采购明细ID
     */
    private Integer procureDetailedid;

    /**
     * 采购总数
     */
    private String procureAllnumber;

    /**
     * 申请人ID
     */
    private Integer procureApplicantid;

    /**
     * 审核状态
     */
    private Integer auditStatus;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    /**
     * 删除标识(0未删除1已删除)
     */
    private Integer deleteFlag;


}
